package com.fenghuajueli.idiomppp.ui.idiompin;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;

import com.fenghuajueli.idiomppp.R;

import com.fenghuajueli.libbasecoreui.utils.MyStatusBarUtils;



/**
 * 作者：yicw
 * 创建时间：2021/5/13 16:33
 * 描述：
 */

public class ActivityChengyu extends AppCompatActivity {

    Fragment fragment;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        MyStatusBarUtils.setStatusBarWhite(this,"#8DDAFF");
        setContentView(R.layout.activity_chengyu);
        fragment=new ChengYuFragment();
        FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
        fragmentTransaction.replace(R.id.mineframelayout,fragment);
        fragmentTransaction.commit();
        findViewById(R.id.fanhui).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }
}
